<template>
	<view class="aaa">
		<!-- 登录页面 -->
		<view class="login" v-if="!token">
			<my-login></my-login>
		</view>
		<!-- 个人信息页面 -->
		<view class="userInfo" v-else>
			<my-userInfo></my-userInfo>
		</view>
	</view>
</template>

<script>
	import badegeMix from '@/mixins/tabbar-badge.js'
	import {
		mapState
	} from 'vuex'
	export default {
		mixins: [badegeMix],
		computed: {
			...mapState('my_user', ['token'])
		},
		data() {
			return {

			}
		}
	}
</script>

<style lang="scss">
	page,
	.aaa {
		height: 100%;

		.userInfo {
			height: 100%;
		}
	}
</style>
